<?php
$result = exec('cd 1:\non_existent; dir nonexistent');
echo "$result";
system('cd 1:\non_existent; dir nonexistent');
?>